package com.aspsine.multithreaddownload.demo;


import com.aspsine.multithreaddownload.demo.entity.AppInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Aspsine on 2015/7/8.
 */
public class DataSource {

    private static DataSource sDataSource = new DataSource();

    private static final String[] NAMES = {
            "360",
            "UC浏览器",
            "前程无忧51job",
            "搜狐视频",
            "微信电话本",
            "淘宝",
            "聚美优品",
            "搜房网",
            "大文件下载",
            "大文件下载",
            "大文件下载"
    };

    private static final String[] IMAGES = {
            "http://img.wdjimg.com/mms/icon/v1/d/29/dc596253e9e80f28ddc84fe6e52b929d_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/d/f1/1c8ebc9ca51390cf67d1c3c3d3298f1d_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/3/2d/dc14dd1e40b8e561eae91584432262d3_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/8/10/1b26d9f0a258255b0431c03a21c0d108_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/3/89/9f5f869c0b6a14d5132550176c761893_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/e/d0/03a49009c73496fb8ba6f779fec99d0e_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/2/bf/939a67b179e75326aa932fc476cbdbf2_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/b/fe/718d7c213ce633fd4e25c278c19acfeb_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/f/29/cf90d1294ac84da3b49561a6f304029f_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/4/43/0318ce32731600bfa66cbb5018e1a434_512_512.png",
            "http://img.wdjimg.com/mms/icon/v1/7/08/2b3858e31efdee8a7f28b06bdb83a087_512_512.png"
    };
    private static final String[] URLS = {

//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/1920x1440/bg-cfbdddf.jpg",
//            "https://wallroom.io/img/1920x1440/bg-002fc41.png",
//            "https://wallroom.io/img/2560x1600/bg-02011cb.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg",
//            "https://wallroom.io/img/5120x3200/bg-2a45794.jpg"
            "https://wallroom.io/img/7680x4800/bg-1954fca.jpg",
            "https://wallroom.io/img/7680x4800/bg-8a2fa02.jpg",
            "https://img0.baidu.com/it/u=2463012553,2551966326&fm=26&fmt=auto&gp=0.jpg",
            "https://img1.baidu.com/it/u=1777746712,3010861351&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=3207730224,324761013&fm=26&fmt=auto&gp=0.jpg",
            "https://img2.baidu.com/it/u=1708516198,3752712632&fm=26&fmt=auto&gp=0.jpg",
            "https://img1.baidu.com/it/u=1480095149,194127395&fm=26&fmt=auto&gp=0.jpg",
            "https://img2.baidu.com/it/u=3657324729,3322726896&fm=26&fmt=auto&gp=0.jpg",
            "https://gyxz2.243ty.com/com.ucmobile.apk",
            "https://down19.xiazaidb.com/app/hepingjingying.apk",
            "https://down19.xiazaidb.com/app/hepingjingying.apk"

    };

    public static DataSource getInstance() {
        return sDataSource;
    }

    public List<AppInfo> getData() {
        List<AppInfo> appInfos = new ArrayList<AppInfo>();
        for (int i = 0; i < NAMES.length; i++) {
            AppInfo appInfo = new AppInfo(String.valueOf(i), NAMES[i], IMAGES[i], URLS[i]);
            appInfos.add(appInfo);
        }
        return appInfos;
    }
}
